local joy__ganlu_active = fk.CreateSkill {

  name = "joy__ganlu_active",

  tags = {  },

}



joy__ganlu_active:addEffect("active", {
  name = "joy__ganlu_active",
  card_num = 0,
  target_num = 2,
  interaction = function(self,player)
    return UI.ComboBox {choices = {"joy__ganlu_move", "joy__ganlu_exchange"} }
  end,
  card_filter = Util.FalseFunc,
  target_filter = function(self, player, to_select, selected)
    if not self.interaction.data or #selected == 2 then return end
    local to = Fk:currentRoom():getPlayerById(to_select)
    if #selected == 0 then
      return #to:getCardIds("e") > 0
    else
      local first = Fk:currentRoom():getPlayerById(selected[1])
      if #first:getCardIds("e") == 0 or firse == to then return end
      if self.interaction.data == "joy__ganlu_move" then
        return first:canMoveCardsInBoardTo(to, "e")
      else
        return table.find(first:getCardIds("e"), function(id) return to:getEquipment(Fk:getCardById(id).sub_type) ~= nil end)
      end
    end
  end,
})

return joy__ganlu_active